from flask import Flask, Blueprint


from applications.view.system.user import bp as user
from applications.view.system.file import bp as file_bp
from applications.view.system.post import bp as post_bp
from applications.view.system.voice_package import bp as voice_package_bp

# 创建sys
system_bp = Blueprint('system', __name__, url_prefix='/system')


def register_system_bps(app: Flask):
    # 在admin_bp下注册子蓝图

    system_bp.register_blueprint(user)
    system_bp.register_blueprint(file_bp)
    system_bp.register_blueprint(post_bp)
    system_bp.register_blueprint(voice_package_bp)
    app.register_blueprint(system_bp)
